package com.hemaapp.yjnh.bean;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

import xtom.frame.XtomObject;
import xtom.frame.exception.DataParseException;

/**热门区域
 * @author ZhangGuiyou
 * Date: 2015-8-7 15:33
 */
public class HotDistrict extends XtomObject implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private String id;// 主键id	
	private String district_name;// 地区	
	private String imgurl;// 封面图片
	private String imgurlbig;// 封面大图
	private String imgurl2;// 详情图片	
	private String imgurl2big;// 详情大图	
	private String regdate;// 发布日期
	private String orderby;// 排序规则
	
	public HotDistrict(JSONObject jsonObject) throws DataParseException {
		if (jsonObject != null) {
			try {

				id = get(jsonObject, "id");
				district_name = get(jsonObject, "district_name");
				imgurl2 = get(jsonObject, "imgurl2");
				imgurl2big = get(jsonObject, "imgurl2big");
				orderby = get(jsonObject, "orderby");
				imgurlbig = get(jsonObject, "imgurlbig");
				imgurl = get(jsonObject, "imgurl");
				regdate = get(jsonObject, "regdate");

				log_i(toString());
			} catch (JSONException e) {
				throw new DataParseException(e);
			}
		}
	}
	
	@Override
	public String toString() {
		return "Blog [id=" + id + "district_name=" + district_name + "imgurl2=" +imgurl2 +
				"imgurl2big=" +imgurl2big + "orderby=" +orderby + "imgurlbig=" +imgurlbig +
				"imgurl=" +imgurl + "regdate=" +regdate  + "]";
	}
	
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	public String getdistrict_name() {
		return district_name;
	}
	public String getimgurl2() {
		return imgurl2;
	}
	public String getimgurl2big() {
		return imgurl2big;
	}
	public String getorderby() {
		return orderby;
	}
	public String getimgurlbig() {
		return imgurlbig;
	}
	public String getimgurl() {
		return imgurl;
	}
	public String getregdate() {
		return regdate;
	}
}
